<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="hamburger_menu.css">
  <title>汉堡菜单</title>
</head>
<body>
  <div class="hamburger_menu">
    <input type="checkbox" id="toggle">
    <!-- 点击文字选择了复选框，主要是靠label标签的for属性，for属性对应的是复选框的id属性，值相等就可以通过label标签选择到复选框 -->
    <label for="toggle">
      <div class="hamburger_container">
        <span></span>
        <span></span>
      </div>
    </label>
    <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
    </ul>
  </div>
</body>
</html>
